package meterMonitor.service;

import meterMonitor.mapper.GmTypeMaper;
import meterMonitor.model.GmTypePO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class GmTypeService {
    @Autowired
    private GmTypeMaper gmTypeMaper;

    public void add(GmTypePO gmType) {
        gmTypeMaper.add(gmType);
    }

    public void update(GmTypePO gmType) {
        gmTypeMaper.update(gmType);
    }

    public void delete(Integer id) {
        gmTypeMaper.deleteById(id);
    }

    public List<GmTypePO> queryList(GmTypePO gmType) {
        return gmTypeMaper.queryList(gmType);
    }
}
